/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "质检数据",TableName = "MES_QualityData",DBServer = "ServiceDbContext")]
[Table("MES_QualityData")]
    public partial class MES_QualityData:ServiceEntity
    {
        /// <summary>
       ///质检ID
       /// </summary>
       [Key]
       [Display(Name ="质检ID")]
       [MaxLength(36)]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid ID { get; set; }

       /// <summary>
       ///序列号
       /// </summary>
       [Display(Name ="序列号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string SerialNumber { get; set; }

       /// <summary>
       ///工位名称
       /// </summary>
       [Display(Name ="工位名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string OPName { get; set; }

       /// <summary>
       ///生产线ID
       /// </summary>
       [Display(Name ="生产线ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? LineId { get; set; }

       /// <summary>
       ///零部件的物料件号
       /// </summary>
       [Display(Name ="零部件的物料件号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ItemCode { get; set; }

       /// <summary>
       ///特性名称
       /// </summary>
       [Display(Name ="特性名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string CharacterName { get; set; }

       /// <summary>
       ///单位
       /// </summary>
       [Display(Name ="单位")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Unit { get; set; }

       /// <summary>
       ///合格下限
       /// </summary>
       [Display(Name ="合格下限")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? NormalMin { get; set; }

       /// <summary>
       ///合格上限
       /// </summary>
       [Display(Name ="合格上限")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? NormalMax { get; set; }

       /// <summary>
       ///质检结果值
       /// </summary>
       [Display(Name ="质检结果值")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? CheckInput { get; set; }

       /// <summary>
       ///是否合格(0：否；1：是；
       /// </summary>
       [Display(Name ="是否合格(0：否；1：是；")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string IsNorma { get; set; }

       /// <summary>
       ///数据上传时间
       /// </summary>
       [Display(Name ="数据上传时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? InputDate { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ReMarks { get; set; }

       
    }
}